<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCutomersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('customers', function(Blueprint $table)
		{
			$table->increments('id');
            $table->integer('province');
            $table->integer('city');
            $table->integer('area')->nullable();
            $table->string('name');
            $table->string('openid');
            $table->string('avatar');
            $table->string('mobile');
            $table->integer('sex');
            $table->integer('type');
            $table->integer('all_points');
            $table->integer('use_points');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('customers');
	}

}
